package com.elephant.core.xcx;

import com.google.gson.annotations.SerializedName;

/**
 * @Author: hai
 * @Date: 2019/1/21 16:24
 */
public class SessionMessage {

    /**
     * 小程序的原始ID
     */
    @SerializedName("ToUserName")
    private String toUserName;
    /**
     * 发送者的openid
     */
    @SerializedName("FromUserName")
    private String fromUserName;
    /**
     * 事件创建时间(整型)
     */
    @SerializedName("CreateTime")
    private long createTime;
    /**
     * event
     */
    @SerializedName("MsgType")
    private String msgType;
    /**
     * 事件类型，user_enter_tempsession
     */
    @SerializedName("Event")
    private String event;
    /**
     * 开发者在【客服会话按钮】设置的sessionFrom参数
     */
    @SerializedName("SessionFrom")
    private String sessionFrom;



    /**
     * 文本消息内容
     */
    @SerializedName("Content")
    private String content;
    /**
     * 消息id，64位整型
     */
    @SerializedName("MsgId")
    private long msgId;

    /**
     * 图片链接（由系统生成）
     */
    @SerializedName("PicUrl")
    private String picUrl;
    /**
     * 图片消息媒体id，可以调用【获取临时素材】接口拉取数据
     */
    @SerializedName("MediaId")
    private String mediaId;

    /**
     * 客服账号，对应事件类型 kf_create_session
     */
    @SerializedName("KfAccount")
    private String kfAccount;

    private String appName;

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getSessionFrom() {
        return sessionFrom;
    }

    public void setSessionFrom(String sessionFrom) {
        this.sessionFrom = sessionFrom;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getMsgId() {
        return msgId;
    }

    public void setMsgId(long msgId) {
        this.msgId = msgId;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getKfAccount() {
        return kfAccount;
    }

    public void setKfAccount(String kfAccount) {
        this.kfAccount = kfAccount;
    }

    @Override
    public String toString() {
        return "SessionMessage{" +
                "toUserName='" + toUserName + '\'' +
                ", fromUserName='" + fromUserName + '\'' +
                ", createTime=" + createTime +
                ", msgType='" + msgType + '\'' +
                ", event='" + event + '\'' +
                ", sessionFrom='" + sessionFrom + '\'' +
                ", content='" + content + '\'' +
                ", msgId=" + msgId +
                ", picUrl='" + picUrl + '\'' +
                ", mediaId='" + mediaId + '\'' +
                ", kfAccount='" + kfAccount + '\'' +
                ", appName='" + appName + '\'' +
                '}';
    }
}
